<?php /* Smarty version 2.6.26, created on 2018-07-05 17:43:19
         compiled from E:%5CWWW%5C40.125.208.171%5Cvweb/home%5Ctemplates/default/index/index.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'url', 'E:\\WWW\\40.125.208.171\\vweb/home\\templates/default/index/index.html', 13, false),array('function', 'ads', 'E:\\WWW\\40.125.208.171\\vweb/home\\templates/default/index/index.html', 19, false),array('function', 'uqcms', 'E:\\WWW\\40.125.208.171\\vweb/home\\templates/default/index/index.html', 57, false),array('modifier', 'img_size', 'E:\\WWW\\40.125.208.171\\vweb/home\\templates/default/index/index.html', 32, false),array('modifier', 'truncate', 'E:\\WWW\\40.125.208.171\\vweb/home\\templates/default/index/index.html', 60, false),)), $this); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo $this->_tpl_vars['UQCMS']['site_title']; ?>
</title> 
<meta name="keywords" content="<?php echo $this->_tpl_vars['UQCMS']['site_keywords']; ?>
"/>
<meta name="description" content="<?php echo $this->_tpl_vars['UQCMS']['site_describe']; ?>
"/> 
<link rel="stylesheet" type="text/css" href="<?php echo $this->_tpl_vars['__PUBLIC__']; ?>
css/common_uqcms.css">
<link rel="stylesheet" type="text/css" href="<?php echo $this->_tpl_vars['__APP__']; ?>
public/css/public.css">
<link rel="stylesheet" type="text/css" href="<?php echo $this->_tpl_vars['__APP__']; ?>
public/css/index.css">
<link rel="stylesheet" type="text/css" href="<?php echo $this->_tpl_vars['__PUBLIC__']; ?>
plug/swiper/swiper.min.css"> 
</head>
<body> <?php echo $this->_plugins['function']['url'][0][0]->load_url(array('path' => "index.php?m=goods&a=detail&id=12"), $this);?>
 
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "default/header.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?> 
<div class="banner_bar" style="height:440px; position:relative; margin-top:-1px; float:left;"> 
	<div class="spdcenter"> 
		<div id="focus">
			<ul>
				<?php echo $this->_plugins['function']['ads'][0][0]->load_ads(array('alias' => 'index_focus_img','data' => 'focus_img'), $this);?>

				<?php $_from = $this->_tpl_vars['focus_img']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['i']):
?>
					<li style="background:<?php echo $this->_tpl_vars['i']['color']; ?>
; ">
						<a href="<?php echo $this->_tpl_vars['i']['link']; ?>
" target="_blank"><img style="float:left;" src="<?php echo $this->_tpl_vars['__IMG__']; ?>
<?php echo $this->_tpl_vars['i']['content']; ?>
"/></a>
					</li>
				<?php endforeach; endif; unset($_from); ?>
			</ul> 
		</div> 
	</div>
	<div class="main">	
		<div class="mbl">
			<div class="alogin"> 
				<?php if ($_SESSION['user']['uid']): ?>
					<div class="img"><img src="<?php if ($_SESSION['user']['avatar']): ?><?php echo $this->_tpl_vars['__IMG__']; ?>
<?php echo ((is_array($_tmp=$_SESSION['user']['avatar'])) ? $this->_run_mod_handler('img_size', true, $_tmp, '80x80') : $this->_plugins['modifier']['img_size'][0][0]->img_size($_tmp, '80x80')); ?>
<?php else: ?><?php echo $this->_tpl_vars['__PUBLIC__']; ?>
images/avatar.png<?php endif; ?>" width="80"/></div>
					<div class="con">
						<span>Hi，你好</span>
						<p>
							<a href="member.php">会员中心</a>
							<a href="member.php?a=logout">退出</a>
						</p>
					</div>
				<?php else: ?>
					<div class="img"><img src="<?php echo $this->_tpl_vars['__PUBLIC__']; ?>
images/avatar.png" width="80"/></div>
					<div class="con">
						<span>Hi，你好</span>
						<p>
							<a href="member.php?a=login">登陆</a>
							<a href="member.php?a=register">注册</a>
						</p>
					</div>
				<?php endif; ?>
			</div>
			<div class="newtab">
				<div class="name">
					<a href="javascript:;" class="ch">商城动态</a>
					<a href="javascript:;">招商入住</a>
				</div>
				<div class="con">
					<?php echo $this->_plugins['function']['uqcms'][0][0]->load_module(array('m' => 'news','v' => 'news_dt','c' => "get_list:alias=notice&page_size=5"), $this);?>

					<div class="con1">
					<?php $_from = $this->_tpl_vars['news_dt']['list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['i']):
?>
						<a href="index.php?m=news&id=<?php echo $this->_tpl_vars['i']['id']; ?>
" target="_blank"><?php echo ((is_array($_tmp=$this->_tpl_vars['i']['title'])) ? $this->_run_mod_handler('truncate', true, $_tmp, '12', "...") : smarty_modifier_truncate($_tmp, '12', "...")); ?>
</a>
					<?php endforeach; endif; unset($_from); ?>	
					</div>
					<div class="con1 apply_img" style="display:none;">
						<div class="img"><a href="member.php?m=shop"><img src="<?php echo $this->_tpl_vars['__PUBLIC__']; ?>
images/apply_shop.png"/></a></div>
						<div class="sw"><a href="member.php?m=shop">查看开店协议</a></div>
					</div>
				</div>
			</div>
		</div>
		
	</div> 
</div>

<!--整点秒杀-->
<?php echo $this->_plugins['function']['uqcms'][0][0]->load_module(array('m' => 'goods_act','v' => 'sps','c' => "seckill:limit=6"), $this);?>

<?php if ($this->_tpl_vars['sps']['list']): ?>
<div class="main_bar" style="position: relative;">
	<div class="main">  
		<div class="seckill">
			<div class="name">
				<div class="l"><a href="index.php?m=goods&a=seckill" target="_blank">整点秒杀</a></div>
				<?php if ($this->_tpl_vars['sps']['next_time'] > 0): ?>
					<div class="next_time" data-time="<?php echo $this->_tpl_vars['sps']['next_time']; ?>
">
						<div class="name2">距离下一波还有</div>
						<div class="djs_box" data-diff="<?php echo $this->_tpl_vars['sps']['next_diff']; ?>
"></div>
					</div>
				<?php endif; ?>
			</div>
			<div class="con">
				<?php $_from = $this->_tpl_vars['sps']['list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['i']):
?>
					<div class="skbox" <?php if ($this->_tpl_vars['key'] == 0): ?>style="border-left:none;"<?php endif; ?>>
						<div class="img"><a href="<?php echo $this->_tpl_vars['__URI__']; ?>
index.php?m=goods&a=detail&id=<?php echo $this->_tpl_vars['i']['gid']; ?>
" target="_blank"><img data-original="<?php echo $this->_tpl_vars['__IMG__']; ?>
<?php echo ((is_array($_tmp=$this->_tpl_vars['i']['images'])) ? $this->_run_mod_handler('img_size', true, $_tmp, '150x150') : $this->_plugins['modifier']['img_size'][0][0]->img_size($_tmp, '150x150')); ?>
" class="lazy"/></a></div>
						<div class="ttl"><a href="<?php echo $this->_tpl_vars['__URI__']; ?>
index.php?m=goods&a=detail&id=<?php echo $this->_tpl_vars['i']['gid']; ?>
" target="_blank"><?php echo $this->_tpl_vars['i']['title']; ?>
</a></div>
						<div class="pr">
							<i>￥</i><span><?php echo $this->_tpl_vars['i']['price']; ?>
</span><s>￥<?php echo $this->_tpl_vars['i']['market_price']; ?>
</s></span>
						</div>
					</div>
				<?php endforeach; endif; unset($_from); ?>
			</div>
		</div> 
	</div> 
</div>
<?php endif; ?>   
<!--品牌列表-->
<?php echo $this->_plugins['function']['uqcms'][0][0]->load_module(array('m' => 'goods_theme','v' => 'brand','c' => "brand:limit=15"), $this);?>

<?php if ($this->_tpl_vars['brand']['list']): ?>
	<div class="main_bar" style="position: relative;">
		<div class="main">  
			<div class="brand">
				<div class="name">
					<div class="l"><a href="javascript:;" target="_blank">品牌专卖</a></div> 
				</div>
				<div class="con">
					<div class="l">
						<?php echo $this->_plugins['function']['ads'][0][0]->load_ads(array('alias' => 'pc_index_brand','data' => 'index_brand'), $this);?>
	
						<?php $_from = $this->_tpl_vars['index_brand']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['i']):
?> 
							<?php if ($this->_tpl_vars['i']['type'] == '2'): ?>
								<a href="<?php echo $this->_tpl_vars['i']['link']; ?>
" target="_blank"><img src="<?php echo $this->_tpl_vars['__IMG__']; ?>
<?php echo ((is_array($_tmp=$this->_tpl_vars['i']['content'])) ? $this->_run_mod_handler('img_size', true, $_tmp, '230x500') : $this->_plugins['modifier']['img_size'][0][0]->img_size($_tmp, '230x500')); ?>
"/></a> 
							<?php endif; ?> 
						<?php endforeach; endif; unset($_from); ?>
					</div>
					<div class="r">
						<?php $_from = $this->_tpl_vars['brand']['list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['i']):
?>
							<dl>
								<dt><a href="index.php?m=goods&brand=<?php echo $this->_tpl_vars['i']['id']; ?>
" target="_blank"><img src="<?php echo $this->_tpl_vars['__IMG__']; ?>
<?php echo ((is_array($_tmp=$this->_tpl_vars['i']['images'])) ? $this->_run_mod_handler('img_size', true, $_tmp, '100x0') : $this->_plugins['modifier']['img_size'][0][0]->img_size($_tmp, '100x0')); ?>
"></a></dt>
								<dd><a href="index.php?m=goods&brand=<?php echo $this->_tpl_vars['i']['id']; ?>
" target="_blank"><?php echo $this->_tpl_vars['i']['name']; ?>
</a></dd>
							</dl>
						<?php endforeach; endif; unset($_from); ?>	
					</div> 
				</div>
			</div> 
		</div> 
	</div>
<?php endif; ?> 
<!--楼层列表-->
<div class="main_bar loulist" style=" position: relative;">
	<div class="main"> 
		<?php echo $this->_plugins['function']['uqcms'][0][0]->load_module(array('m' => 'goods_index','v' => 'data','c' => "goods:page_size=8"), $this);?>

		<?php $_from = $this->_tpl_vars['data']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['g']):
?>
			<?php if ($this->_tpl_vars['g']['goods']): ?>
			<div class="detail">
				<div class="name">
					<h2 class="f<?php echo $this->_tpl_vars['g']['lou']; ?>
"><?php echo $this->_tpl_vars['g']['lou']; ?>
F <a href="index.php?m=goods&cid=<?php echo $this->_tpl_vars['g']['cid']; ?>
" class="more"><?php echo $this->_tpl_vars['g']['cname']; ?>
</a></h2> 
				</div>
				<div class="con">
					<div class="l">
						<div class="top lbbtm">
							<?php echo $this->_plugins['function']['ads'][0][0]->load_ads(array('alias' => $this->_tpl_vars['g']['ad_cid'],'data' => '1f_ad'), $this);?>
	
							<?php $_from = $this->_tpl_vars['1f_ad']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['i']):
?> 
								<?php if ($this->_tpl_vars['i']['type'] == '2'): ?>
									<a href="<?php echo $this->_tpl_vars['i']['link']; ?>
" target="_blank"><img src="<?php echo $this->_tpl_vars['__IMG__']; ?>
<?php echo ((is_array($_tmp=$this->_tpl_vars['i']['content'])) ? $this->_run_mod_handler('img_size', true, $_tmp, '230x500') : $this->_plugins['modifier']['img_size'][0][0]->img_size($_tmp, '230x500')); ?>
"/></a> 
								<?php endif; ?> 
							<?php endforeach; endif; unset($_from); ?>
						</div>
						<div class="hc">
							<ul>
							<?php $_from = $this->_tpl_vars['g']['cats']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['ck'] => $this->_tpl_vars['c']):
?> 
								<li><a href="index.php?m=goods&cid=<?php echo $this->_tpl_vars['c']['cid']; ?>
" title="<?php echo $this->_tpl_vars['c']['name']; ?>
"><?php echo $this->_tpl_vars['c']['name']; ?>
</a> </li>
							<?php endforeach; endif; unset($_from); ?> 
							</ul>
						</div>
					</div>
					<div class="c">
						<?php $_from = $this->_tpl_vars['g']['goods']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['i']):
?> 
							<dl>
								<dt><a href="index.php?m=goods&a=detail&id=<?php echo $this->_tpl_vars['i']['id']; ?>
" target="_blank"><img data-original="<?php echo $this->_tpl_vars['__IMG__']; ?>
<?php echo ((is_array($_tmp=$this->_tpl_vars['i']['images'])) ? $this->_run_mod_handler('img_size', true, $_tmp, '180x180') : $this->_plugins['modifier']['img_size'][0][0]->img_size($_tmp, '180x180')); ?>
" alt="<?php echo $this->_tpl_vars['i']['title']; ?>
" class="lazy"></a></dt>
								<dd><a class="ttl" href="index.php?m=goods&a=detail&id=<?php echo $this->_tpl_vars['i']['id']; ?>
" title="<?php echo $this->_tpl_vars['i']['title']; ?>
"  target="_blank"><?php echo ((is_array($_tmp=$this->_tpl_vars['i']['title'])) ? $this->_run_mod_handler('truncate', true, $_tmp, 17, '') : smarty_modifier_truncate($_tmp, 17, '')); ?>
</a></dd>
								<dd class="pr"><span>¥ <?php echo $this->_tpl_vars['i']['price']; ?>
</span></dd>
							</dl>
						<?php endforeach; endif; unset($_from); ?>
					</div>
					
				</div>
			</div> 
			<?php endif; ?>
		<?php endforeach; endif; unset($_from); ?>
	</div> 
</div> 
<div class="sch_hidden_bar">
	<div class="sch_hidden">
		<div class="slogo"><a href=""><img src="<?php echo $this->_tpl_vars['__IMG__']; ?>
<?php echo $this->_tpl_vars['UQCMS']['site_logo']; ?>
"/></a></div>
		<form action="index.php" method="get">
			<div class="sch"> 
				<input type="hidden" name="m" value="goods"/>
				<input type="text" size="55" name="key"/>
				<input type="submit" id="ssx_submit" value="搜索"/>
			</div>
		</form>
		<div class="tcart"><a href="index.php?m=cart" target="_blank"><span></span><i>购物车</i></a></div>
	</div>
</div>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "default/footer.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<script type="text/javascript">
var PUBLIC_PATH	= '<?php echo $this->_tpl_vars['__PUBLIC__']; ?>
';
var APP_PATH	= '<?php echo $this->_tpl_vars['__APP__']; ?>
';
var IMG_HOST 	= '<?php echo $this->_tpl_vars['__IMG__']; ?>
'; 
</script>
<script type="text/javascript" src="<?php echo $this->_tpl_vars['__PUBLIC__']; ?>
js/jquery.min.js"></script>
<script type="text/javascript" src="<?php echo $this->_tpl_vars['__PUBLIC__']; ?>
js/common.js?t=<?php echo time(); ?>
"></script> 
<script type="text/javascript" src="<?php echo $this->_tpl_vars['__PUBLIC__']; ?>
plug/swiper/swiper.min.js"></script> 
<script type="text/javascript" src="<?php echo $this->_tpl_vars['__APP__']; ?>
public/js/cart.js"></script>
<script type="text/javascript" src="<?php echo $this->_tpl_vars['__APP__']; ?>
public/js/rside.js"></script>
<script type="text/javascript"> 
lazyload();  
<?php if ($this->_tpl_vars['sps']['next_time'] > 0): ?>
	countDown('.djs_box');
<?php endif; ?>
/*首页轮播*/
span_ch = '<h4>';
$("#focus ul li").each(function(i){ 
	if(i == 0){
		span_ch += '<span class="ch"></span>';
	}else{
		span_ch += '<span></span>';
	} 
});
span_ch += '</h4>';
$("#focus ul").append(span_ch);
 
var curIndex = 0; 
var autoChange;
autoChange = setInterval(function(){ 
	changeTo(); 
},3000);

$("#focus h4 span").hover(function(){
	clearInterval(autoChange);
	curIndex = $(this).index();
	changeTo(curIndex);
},function(){
	autoChange = setInterval(function(){ 
		changeTo(); 
	},2000);
});

function changeTo(){ 
	if(curIndex > $("#focus li").length-1){ 
		curIndex = 0;
		next=0;
	} 
	// 改变大图
	$("#focus li").eq(curIndex).stop().fadeTo(300,0.9).siblings('li').stop().fadeTo(300, 0); 
	// 改变按钮
	$("#focus h4 span").eq(curIndex).siblings().removeClass('ch');
	$("#focus h4 span").eq(curIndex).addClass('ch'); 
	curIndex ++; 
}

$(function() { 
	$(".newtab .name a").hover(function(){
		$(this).addClass("ch").siblings('a').removeClass("ch");  
		var $index=$(this).index(); 
      	$(".newtab .con .con1").eq($index).show().siblings('.newtab .con .con1').hide();  
	});
	// 滚动到中部，显示顶部搜索 
	$(window).scroll(function(e){ 
		st = $(document).scrollTop();
		if(st > 300){ 
			$(".sch_hidden_bar").show();
		}else{
			$(".sch_hidden_bar").hide();
		}
	}); 
	// 倒计时
	SysSecond = parseInt($(".next_time").attr("data-time")); 
	SetRemainTime();
	InterValObj = window.setInterval(SetRemainTime, 1000);  
});
</script>








